<template>
  <div class="mobileFooter">
    <div class="fb">
      <div class="amount">
        报销金额 : <span class="price">￥{{ formatToThousands(totalAmount) }}</span>
      </div>
      <div class="btn">提交</div>
    </div>
  </div>
</template>

<script setup>
import { formatToThousands } from '@/utils/formate.js'

import { computed } from 'vue'
const totalAmount = computed(() => 0)
</script>

<style lang="scss" scoped>
.mobileFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.fb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  height: 60px;
}

.amount {
  font-size: 12px;

  .price {
    font-size: 14px;
    color: #f56c6c;
    font-weight: bold;
  }
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 160px;
  height: 40px;
  font-family: Alibaba PuHuiTi;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  justify-content: center;
  background: #4080ff;
  border-radius: 10px;
  .save,
  .submit {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
  }

  .save {
    background-color: #f5f7fa;
    color: #606266;
  }

  .submit {
    background-color: #409eff;
    color: white;
  }

  .icon {
    display: flex;
    align-items: center;

    img {
      width: 20px;
      height: 20px;
    }
  }
}
</style>
